import request from '@/utils/request'

// 查询补偿任务列表
export function listRecoup(query) {
  return request({
    url: '/system/recoup/list',
    method: 'get',
    params: query
  })
}

// 查询补偿任务详细
export function getRecoup(id) {
  return request({
    url: '/system/recoup/' + id,
    method: 'get'
  })
}

// 新增补偿任务
export function addRecoup(data) {
  return request({
    url: '/system/recoup',
    method: 'post',
    data: data
  })
}

// 修改补偿任务
export function updateRecoup(data) {
  return request({
    url: '/system/recoup',
    method: 'put',
    data: data
  })
}

// 删除补偿任务
export function delRecoup(id) {
  return request({
    url: '/system/recoup/' + id,
    method: 'delete'
  })
}

// 导出补偿任务
export function exportRecoup(query) {
  return request({
    url: '/system/recoup/export',
    method: 'get',
    params: query
  })
}
